package com.ytzl.itrip.service;

import com.ytzl.itrip.pojo.ItripHotelOrder;
import com.ytzl.itrip.common.Page;
import com.ytzl.itrip.vo.order.ItripPersonalOrderRoomInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripHotelOrderService {

    public ItripHotelOrder getItripHotelOrderById(@Param(value = "id") Long id) throws Exception;

    public List<ItripHotelOrder> getItripHotelOrderListByMap(Map
                                                                     <String, Object> param) throws Exception;

    //根据订单Id查询酒店信息
    ItripPersonalOrderRoomInfoVO getHotelOrderRoomInfoByOrderId(Long orderId);

    public Integer getItripHotelOrderCountByMap(Map
                                                        <String, Object> param) throws Exception;

    public Integer saveItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception;

    public Integer modifyItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception;

    public Integer removeItripHotelOrderById(@Param(value = "id") Long id) throws Exception;

    public Page<ItripHotelOrder> queryItripHotelOrderPageByMap(Map
                                                                       <String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    public Integer removeItripHotelOrderByIds(@Param(value = "ids") Long[] ids) throws Exception;
}
